function defineReactive(obj, name, value) {
  Object.defineProperty(obj, name, {
    get() {
      console.log('获取数据')
      return value
    },
    set(newvalue) {
      console.log('设置数据')
      value = newvalue
    },
  })
}

// let observe = { name: 'lisi', age: 23 }
// defineReactive(observe, 'name', observe.name)
// observe.name = 'big'
// console.log(observe.name)
